import instance from "@/utils/request";
//查询个人信息
export const getusermassage=(username)=>{
    const params = new URLSearchParams();
    params.set("username",username);
    return instance.get("/user",{params:params});
}
//修改个人信息
export const changeusermassage=(user)=>{
    return instance.put("/user",user);
}
//查询职业信息
export const getoccupation=()=>{
    return instance.get("/occupation")
}
//查询资源种类
export const getclasses=(occupationId)=>{
    const params = new URLSearchParams();
    params.set("occupationId",occupationId);
    return instance.get("/classes",{params:params});
}



